{{csrf_field()}}
<div  class="layui-form">

    <div class="layui-form-item">
        <label class="layui-form-label">用户名：</label>
        <div class="layui-input-block">
            <input type="text" name="username" value="{{$info->username ?? ''}}" lay-verify="required"  lay-reqText="用户名必填"placeholder="请输入用户名" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">邮箱：</label>
        <div class="layui-input-block">
            <input type="text" name="email" value="{{$info->email ?? ''}}"   lay-verify="required"  lay-reqText="邮箱必填" placeholder="请输入邮箱" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">密码：</label>
        <div class="layui-input-block">
            <input type="text" name="password" value="{{$info->password ?? ''}}"  placeholder="输入密码" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">重复密码：</label>
        <div class="layui-input-block">
            <input type="text" name="password" value="{{$info->password ?? ''}}"  placeholder="输入密码" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">角色</label>
        <div class="layui-input-block">

            <select lay-verify="required" lay-reqText="请选择分类" name="roles_id" xm-select-direction="down" xm-select="roles_id" xm-select-search-type="dl" xm-select-search>
                @if(isset($roles))
                    @foreach($roles as $key =>$val)
                        <option value="{{$val['id']}}" @if(isset($checkArrR) && in_array($val['id'],$checkArrR)) selected @endif>{{$val['name']}}</option>
                    @endforeach
                @endif
            </select>
        </div>
    </div>
    {{--<div class="layui-form-item">
        <label class="layui-form-label">权限</label>
        <div class="layui-input-block">

            <select lay-verify="required" lay-reqText="请选择分类" name="permissions_id" xm-select-direction="down" xm-select="permissions_id" xm-select-search-type="dl" xm-select-search>
                @if(isset($permissions))
                    @foreach($permissions as $key =>$val)
                        <option value="{{$val['id']}}" @if(isset($checkArrP) && in_array($val['id'],$checkArrP)) selected @endif>{{$val['name']}}</option>
                    @endforeach
                @endif
            </select>
        </div>
    </div>--}}


    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-filter="post-submit" lay-submit>保 存</button>
        </div>
    </div>
  </div>
@section('script')
    <link rel="stylesheet" href="{{ asset('static/admin/css/formSelects-v4.css') }}">
    <script>
        layui.use(['layer', 'form','jquery','formSelects'], function(){
            var layer = layui.layer,
                form =layui.form,

                $  = layui.jquery;


            //监听提交
            form.on('submit(post-submit)', function(data){

            });
        });
    </script>
@endsection